package com.dynamicds.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSON;
import com.dynamicds.domain.Member;
import com.dynamicds.mapper.member.MemberMapper;

@Controller
public class HomeController {
	
	@Autowired
	private MemberMapper memberMapper;

	@RequestMapping("index")
	public String index() {
		Member member = memberMapper.queryMemberByID(1);
		System.out.println(JSON.toJSONString(member));
		return "index";
	}
	
}
